package webmarket.model;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * The persistent class for the shopcategory database table.
 * 
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class Shopcategory implements Serializable {
	private static final long serialVersionUID = 1L;

	@XmlElement
	private String description;

	@XmlElement
	private String name;

	private Shopcategory parent;

	@XmlElement
	private List<Shopcategory> children;

	public Shopcategory() {
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the parent
	 */
	public Shopcategory getParent() {
		return parent;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(Shopcategory parent) {
		this.parent = parent;
	}

	/**
	 * @return the children
	 */
	public List<Shopcategory> getChildren() {
		return children;
	}

	/**
	 * @param children the children to set
	 */
	public void setChildren(List<Shopcategory> children) {
		this.children = children;
	}

}